<!doctype html>
<html class="no-js">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport"   content="width=device-width, initial-scale=1">
    <title>add</title>
    {% include 'index/public/style.html' %}
</head>
<body>
<div class="container ">
    {% include 'index/public/head.html' %}
    {% include 'index/public/nav.html' %}
    <div class="box" >
        <form method="post"  action="{{get_url('index.index.add')}}">
            <div class="field">
                <label class="label">标题</label>
                <div class="control">
                    <div class="select">
                        <select name="cid">
                            {% for item in g.cate_list %}
                            <option value="{{item.id}}"> {{ item.name }}</option>
                        {% endfor %}
                    </select>
                    </div>
                </div>
            </div>
            <div class="field">
                <label class="label">标题</label>
                    <div class="control">
                        <input class="input"  name="title" type="text" placeholder="标题">
                    </div>
            </div>
            <div class="field">
                <label class="label">内容</label>
                    <div class="control">
                        <textarea  class="input"  name="content"  placeholder="内容" style="height:150px"></textarea>
                    </div>
            </div>
            <div class="field is-grouped">
                <div class="control">
                    <button class="button is-link">发表</button>
                </div>
            </div>
        </form>
    </div>
    {% include 'index/public/foot.html' %}
</div>


</body>
</html>
